import unittest


class OALogin(unittest.TestCase):
    def setUp(self) -> None:
        print("登录")

    def test_01(self):
        assert type(2) is int, '与预期不符'
        # self.assertEqual(3,36,msg='与预期不符')
        # self.assertNotEqual(3,3,msg='与预期不符')
        # self.assertEqual(6,68,msg = '与需求不符')
        # self.assertNotEqual(6,66, msg = '与需求不符')
        # self.assertIn(4,[5,6,74,3,2,4],msg='与预期不符')
        # self.assertIn('444','444',msg='与预期不符')
        # self.assertNotIn('a',{'a':'6'},msg='与预期不符')
        # self.assertTrue(3==3,msg='与预期不符')
        # self.assertFalse(id(2) != id(2),msg='与预期不符')
        # self.assertIsInstance(3, bool, msg='错误')
        # self.assertNotIsInstance(bool, int, msg='错误')
        # self.assertNotIsInstance(int, bool, msg='错误')
        # self.assertIsInstance(False, str, msg='错误')
        # self.assertIsInstance(False, bool, msg='错误')
        # self.assertIsInstance(55, int, msg='错误')
        # self.assertIsInstance(False, int, msg='错误')
        # self.assertIsInstance(5, bool, msg='错误')
        #
        # self.assertIsNone(None, msg='错误')
        # self.assertIsNone(0, msg='错误')
        # self.assertIsNone('', msg='错误')
        # self.assertIsNotNone(None, msg='错误')

        # def myfum():
        #     print('我是一个函数')
        #
        # self.assertIsNone(myfum, msg='错误')
        # self.assertIsNone(myfum(), msg='错误')
        # self.assertIsNone(print, msg='错误')
        # self.assertIsNone(print(), msg='错误')

    def tearDown(self) -> None:
        print("关闭浏览器")

#执行测试用例
if __name__ == "__main__":
    unittest.main()